package com.takanafu.haru.code{
	public class CodeMinus extends CodeBase{
		private var code:CodeBase;
		
		public function CodeMinus(c:CodeBase){
			this.code = c;
		}
		
		override public function run():CodeBase{
			var c:CodeBase = this.code.run();
			var i:CodeINT = c as CodeINT;
			
			return new CodeINT(i.getValue() * -1);
		}
	}
}